#ifndef INSERTTHREAD_H
#define INSERTTHREAD_H

#include <QObject>
#include <QQueue>

#include "database.h"

class InsertThread : public QObject
{
    Q_OBJECT
public:
    explicit InsertThread(QObject *parent = nullptr);
    ~InsertThread();

signals:

public slots:
    void startThread_slot();

    void exitThread_slot();

private slots:
    void onInsert_slot();

private:
    DataBase database;

};

#endif // INSERTTHREAD_H
